---@class Battle.BuffEffect2:Battle.BuffEffectBase
---触发技能buff脚本
local BuffEffect2 = Battle.CreateClass("BuffEffect2",Battle.BuffEffectBase)
Battle.BuffEffect2 = BuffEffect2
function BuffEffect2:OnCreate(buff)
    ---@type Battle.Skill
    self.buff = buff
    ---@type Battle.Entity
    self.param = decodeJsonStrToTable(buff.cfg.f_EffectParameter);
end

---buff生效时
function BuffEffect2:OnBuffStart(...)
    for i, v in pairs(self.param) do
        local actor = Battle.ActorManager.GetActor(self.buff.targetId)
        self.skill = actor.skillSystem:DoSkill(v[1])
    end

end
return BuffEffect2